package com.vueapi.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @Classname DateUtils
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/23 9:53
 * @Version 1.0.0
 */
public class DateUtils {

    public static Date calLastDay(int day){
        Date date = new Date();
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.DAY_OF_MONTH,-day);
        return calendar.getTime();
    }

}
